/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dataanalysis.gui;

import javax.swing.JDialog;
import javax.swing.JFrame;
/**
 *
 * @author Administrator
 */
public class ProgressDlg extends JDialog{
    
    private final PrgPanel m_prgPanel;
    public ProgressDlg(JFrame parent){
        super(parent,true);

        m_prgPanel=new PrgPanel();
        this.add(m_prgPanel);
        this.setResizable(false);
        this.setUndecorated(true);
        this.pack();
        this.setLocationRelativeTo(null);
    }

    public void setText(String str){
        m_prgPanel.setText(str);
    }

    public void showProgress(boolean b){
        this.setVisible(b);
        this.getParent().setEnabled(!b);
    }
}
